package com.zecan.blog.common.status;

import com.zecan.blog.common.status.code.UserCode;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @ClassName UserStatus
 * @Description
 * @date 2022/10/29 11:50
 * @Version 1.0
 * 用户状态信息
 */
@AllArgsConstructor
@Getter
public enum UserStatus {

    USER_LOGIN_SUCCESS(UserCode.USER_LOGIN_SUCCESS,"登录成功"),
    USER_REG_SUCCESS(UserCode.USER_REG_SUCCESS,"注册成功"),
    USER_SEND_EMAIL_SUCCESS(UserCode.USER_SEND_EMAIL_SUCCESS,"邮箱发送成功"),
    USER_UPDATE_INFO_SUCCESS(UserCode.USER_UPDATE_INFO_SUCCESS,"更新信息成功"),
    USER_LOGOUT_SUCCESS(UserCode.USER_LOGOUT_SUCCESS,"退出登录成功"),
    USER_ADD_BLOG_SUCCESS(UserCode.USER_ADD_BLOG_SUCCESS,"发布博文成功"),
    USER_GET_ARTICLE_SUCCESS(UserCode.USER_GET_ARTICLE_SUCCESS,"获取用户文章成功"),


    USER_IS_NOT_FOLLOW(UserCode.USER_IS_NOT_FOLLOW, "当前用户还没有关注过"),

    USER_FOLLOW_IS_EXIST(UserCode.USER_FOLLOW_IS_EXIST, "当前用户已经关注过"),

    USER_GET_BLOG_MSG_SUCCESS(UserCode.USER_GET_BLOG_MSG_SUCCESS, "获取用户博客信息成功"),

    USER_NOT_FOUND(UserCode.NOT_FOUND,"当前用户不存在"),
    USER_NOT_LOGIN(UserCode.NOT_LOGIN,"当前用户还没登录"),
    USER_NOT_AUTHORITY(UserCode.USER_NOT_AUTHORITY,"当前用户没有权限"),

    USER_REG_ERR(UserCode.USER_REG_ERR,"注册时发生未知异常"),
    USER_EMAIL_ALREADY_EXISTS(UserCode.EMAIL_ALREADY_EXISTS,"当前邮箱已注册"),
    USER_EMAIL_FORMAT_ERR(UserCode.EMAIL_FORMAT_ERR,"邮箱格式不正确"),
    USER_NAME_ALREADY_REG(UserCode.USER_NAME_ALREADY_REG,"当前用户名已注册"),
    USER_NAME_TOO_SHORT(UserCode.USER_NAME_TOO_SHORT,"用户名过短"),

    USER_ADD_FRIEND_IS_EXIST(UserCode.USER_ADD_FRIEND_IS_EXIST,"已经添加过好友了"),

    USER_PASS_SHORT(UserCode.USER_PASS_SHORT,"密码过短"),
    USER_NAME_TOO_LONG(UserCode.USER_NAME_TOO_LONG,"用户名过长"),
    USER_LOGIN_ERR(UserCode.LOGIN_ERR,"用户或密码输入错误"),
    USER_CAPTCHA_ERR(UserCode.CAPTCHA_ERR,"用户验证码输入错误"),
    USER_CAPTCHA_EXPIRE(UserCode.CAPTCHA_EXPIRE,"验证码已过期请重新获取再输入"),

    USER_UPDATE_INFO_ACCESS_LIMIT(UserCode.USER_UPDATE_INFO_ACCESS_LIMIT,"不能重复提交数据"),

    USER_SEND_EMAIL_ACCESS_LIMIT(UserCode.USER_SEND_EMAIL_ACCESS_LIMIT,"请不要重复发邮箱哦！"),

    USER_ADD_GOOD_ACCESS_LIMIT(UserCode.USER_ADD_GOOD_ACCESS_LIMIT,"请不要重复点赞"),

    USER_ADD_STAR_ACCESS_LIMIT(UserCode.USER_ADD_STAR_ACCESS_LIMIT,"请不要重复收藏"),
    USER_ARTICLE_SEND_ERR(UserCode.ARTICLE_SEND_ERR,"发布文章失败"),
    USER_UPDATE_INFO_ERR(UserCode.UPDATE_USER_INFO_ERR,"更新用户数据失败"),
    USER_EMAIL_SEND_ERR(UserCode.EMAIL_SEND_ERR,"邮箱发送失败"),
    USER_ARTICLE_IS_NOT_EXIST(UserCode.ARTICLE_IS_DEL,"当前文章不存在");
    int code;
    String msg;

}
